import compose from 'koa-compose';
import Router from 'koa-router';
import RouterToken from './token';
import RouterUser from './user';

const router = new Router();

router.get("/", async (ctx, next) => {
	ctx.body = "tbk project";
})

router.use('/auth',RouterToken);
router.use('/user',RouterUser);

export default function routers(){
	return compose(
		[
			router.routes(),
			router.allowedMethods()
		]
	)
}